public class Supermarket {

    private static final double APPLE_PRICE = 8;
    private static final double STRAWBERRY_PRICE = 13;
    private static final double MANGO_PRICE = 20;

    // 原价购买苹果和草莓
    public static double calculateTotalPriceNormal(int applePounds, int strawberryPounds) {
        return applePounds * APPLE_PRICE + strawberryPounds * STRAWBERRY_PRICE;
    }

    // 原价购买苹果、草莓和芒果
    public static double calculateTotalPriceNormal(int applePounds, int strawberryPounds, int mangoPounds) {
        return applePounds * APPLE_PRICE + strawberryPounds * STRAWBERRY_PRICE + mangoPounds * MANGO_PRICE;
    }

    // 草莓打八折
    public static double calculateTotalPriceDiscounted(int applePounds, int strawberryPounds, int mangoPounds) {
        return applePounds * APPLE_PRICE + strawberryPounds * STRAWBERRY_PRICE * 0.8 + mangoPounds * MANGO_PRICE;
    }

    // 草莓打八折且满100减10
    public static double calculateTotalPriceReduction(int applePounds, int strawberryPounds, int mangoPounds) {
        double total = calculateTotalPriceDiscounted(applePounds, strawberryPounds, mangoPounds);
        if (total >= 100) {
            total -= 10;
        }
        return total;
    }
}
